package com.likk.usermanage.service;

import com.likk.usermanage.pojo.EasyUIResult;
import com.likk.usermanage.pojo.User;

public interface UserService {
	
	/**
	 * 分页获取用户信息
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	public EasyUIResult queryEasyUIResult(Integer pageNum, Integer pageSize);
	
	/**
	 * 测试事务
	 * @param user1
	 * @param user2
	 */
	public void addUsers(User user1, User user2) throws Exception;
	
	/**
	 * 新增用户信息
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public Boolean addUser(User user) throws Exception;
	
	public Boolean deleteUser(String[] ids);

	public User queryUserById(Long id);
	
	public void updateUser(User user);

	public void deleteUserById(Long id);

	User queryUserByUsername(String username);
}
